package Stack;

public class StackDome {

    public static void main(String[] args) {

        MyStack stack=new MyStack();
        stack.push(5);
        stack.push(4);
        stack.push(3);
        stack.push(2);

        stack.display();

        stack.pop();
        System.out.println();
        int date=stack.peek();
        System.out.println(date);
    }
}
